package com.znufe.exam.service;

import me.chanjar.weixin.common.exception.WxErrorException;

/**
 * @Description:
 * @Author: Gongjc
 * @Date: 2020/11/14
 * @Version 1.0
 */
public interface IWxAuthService {

    /**
     * 获取微信公众号openid
     * @param code
     * @return
     * @throws WxErrorException
     */
    Object getSrvOpenid(String code) throws WxErrorException;

    /**
     * 公众号获取微信用户信息
     * @return
     */
    Object getSrvUser(String code) throws WxErrorException;
}
